<?php

require_once 'Factory.php';
class Client
{
    public  function doSend()
    {
        //发送阿里云短信
        $productA=Factory::createSend("aliyun");
        $productA->send();
        //发送百度短信
        $productB=Factory::createSend("baidu");
        $productB->send();
    }


}

$test=new Client();
$test->doSend();
